description:
remove-suffix["str"] |x>
remove suffix "str" from the ket |x>, if it exists
remove-suffxi[n] |x>
remove last n chars from |x>
examples:
remove-suffix[" sentence."] |This is a sentence.>
|This is a>
remove-suffix[3] |uvwxyz>
|uvw>
see also:
remove-prefix