How to delete words on the iPhone/iTouch?

On my iPod Touch in iMessages it keeps auto-correcting the wrong things. I tried resetting keyboard dictionary but it didn't work.

When typing, if you spell a word and it comes up with a different one over the word, click the X button. Do NOT press space or it will auto fill the word

In "Settings" Go to "General"
Then to "Reset" Select and go "Reset Keyboard Dictionary"
Now all the words in dictionary and your keyboard settings are reset.