Optimise Pascal.build method.
Remove trailing spaces from output.