replace deprecated sets with the new set datatype and lower case user input character