Replaced deprecated methods

Replace deprecated methods of StringUtil with their php internal
equivalents. I had to open a new pull request, because i have no idea
how to update the old one :p
Merge pull request #1489 from SoftCreatR/deprecated

Replace deprecated methods