a shorthand function for either getting the upper or lower case of a string str, based on the numeric option.

options:

  • option > 0 => input string is turned to uppercase
  • option < 0 => input string is turned to lowercase
  • option = 0 => input string is unmodified