made the test case insensitive, added trim