call downcase only once on input string, changed format of some line to be more in Rubyś character