prefix and suffix replacement