Might have solved it. It might be the "predictive text" function, and I disabled it (this is with the Samsung Keyboard). Not sure if this will work, but if interested, do it as follows:
Settings>General Management>Language and Input>virtual keyboard>Samsung keyboard>uncheck Predictive text