Replace 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