Replaced Split for Preg_Split

replaced split() for preg_split(). split() has been deprecated as of PHP 5.3