Removing unexpected character