pub fn strip_both(string: &str, left: char, right: char) -> String
Expand description

Removes the given characters at the beginning and at the end of the string.

Examples

use kalgan_string;

assert_eq!(kalgan_string::strip_both("Hello World", 'H', 'd'), "ello Worl");