apex add single quote code example Example: apex add single quote String newString = '\''+ oldString + '\'';