The requirement to "trim" is an implementation details. If you for example only generate numbers as hashes, there would be no trim at all. The signer may trim its hashes, if required by itself.