leading spaces should not get trimmed
improve tests
add 5.2 to PHP versions to test against