This is code is based off of php_trim, which was used first but shouldn't have been ...