I think it was the Edit-Substitutions-Text Replacement being checked that caused the problem but I am not sure. If I tick it now I get a similar problem to the one I had in the first place. Either way it was Step 3 that fixed it.
"Step 3
If Safari still doesn’t work right, quit, go back to the Finder and move the following items from the open Library folder to the Desktop (some may not exist):
Cookies/Cookies.binarycookies
Preferences/com.apple.Safari.LSSharedFileList.plist
Preferences/com.apple.Safari.plist
Preferences/com.apple.Safari.RSS.plist
Preferences/com.apple.WebFoundation.plist
PubSub/Database
Safari
(Note: you are not moving the Safari application. You’re moving a folder named “Safari.”)
Try again. This time Safari should perform normally, but your settings and bookmarks will be lost."