added .downcase to prevent error on uppercase input