Removes leading and trailing escapes