Changes text input to a code