util for triming whitespace from symfony2 projects