PHP 5.3 String manipulation Class