I fixed it by doing the following: settings - language and keyboard - samsung keypad - xt9 advanced settings - switch OFF next word prediction