You can't do this of course. findInLine is a method.
toLowerCase is a method which returns the string in lower case. The original String is NOT changed.
1. You didn't call it as a method 2. Even If you would have, it woudln't work, because you don't do anything with the result. 3. findInLine does not exist in the String datatype. Use indexOf instead (read the API for a complete description. )