Replaces String literal with enum constant.