The Tab character is considered a space, but you do not need to implement it yourself. Just use overload , which contains a list of characters to trim:
char[] charsToTrim = { '*', ' ', '\''};
string banner = "*** Much Ado About Nothing ***";
string result = banner.Trim(charsToTrim);
source
share