Trim before whitespace preg_replace.