toLowerCase added to check input