Reduce number of calls to to_s and downcase