Remove specified character from start and/or end of target string.
String to remove character from.
Character to remove.
If character should be removed from start, end. or both.
Remove specified character from start and/or end of target string.