Add a trim call to permutations.php

Add a trim call to permutations.php