Change cases of the input string