changing str.lowercase to str.lower everywhere