Switches string to constant