convert strings to constants