Fixed PHP Strict errors with Trim and Explode