Removes a character from a string