Added 'tolower' to simplify code