Please don't post multiple threads on the same topic. Your other thread was deleted.

As for your question, we will not write the code or do Internet searching for you. Review the String API for...