Check the String API for methods - well, one method - that may be helpful.