Update lib/PPUtils.php

Simplified function by using a single str_replace() instead of many.
Same functionality and easier to read.
Merge pull request #8 from diemuzi/patch-3

Update lib/PPUtils.php