Converting given string to upper and lower case

toUpperCase() and toLowerCase() are methods in String
class which converts given string in upper and lower case respectively and return a string.