This is a nice reference: String (Java 2 Platform SE 5.0)

To ignore cases.. There is a method just for that. To remove unwanted characters, you can do that as well :) Enjoy