Good to hear such a simple solution fixed it, DOH!
The error normally occurs because when you cut and paste the password, sometimes you get a trailing space.