Force prefix and suffix before middle

This should be slightly more efficient. Probably very slightly, but there doesn't seem to be a good reason not to.
Merge pull request #61 from treeowl/master

Force prefix and suffix before middle