convert from strings to constants