Salesforce provide String class which can be used to work with string ..
This site survives thanks to advertising. Disable AdBlock to see the whole correct answer at no cost! We promise you will not find boring advertisements. Find out how to disable Adblock by clicking on this link. Remember to update the page once you have disabled it.