PHP 5.3 build is required
trim only when needed
ensure that the test pass