Changed method for inputting words