support for adding carets and quotes to strings.