codeeval.com lowercase commit. added test cases for later optimization