Adding API for removing a character from input string