You could use "mystring".equalsIgnoreCase("someString") instead of capitalizing stuff