Make removing prefixes and suffixes easier