Search for a substring without case sensitive.

Hi, how can I know if a String has a defined substring. Actuall I am using indexOf but the customers sometimes write the first letter in upper case, so I want to do the search without worring about that.How can I do it?
[233 byte] By [MelGohana] at [2007-11-27 5:41:58]
# 1
Use toLowerCase() before the check.
sabre150a at 2007-7-12 15:20:05 > top of Java-index,Java Essentials,Java Programming...
# 2
Create 2 new Strings from stringToSearch.toLowerCase() and substring.toLowerCase() (or both toUpperCase - makes no odds)
georgemca at 2007-7-12 15:20:05 > top of Java-index,Java Essentials,Java Programming...
# 3
The problem is that the original String may have some upper case letter on it. I cannot tell that becausse is gotten from their database. I guess I will put both on lower case. Thanks a lot.
MelGohana at 2007-7-12 15:20:05 > top of Java-index,Java Essentials,Java Programming...