Fix handling of {^} to do both suffix and prefix.