InputText: Code cleanup