Trim instead of preg_replace