Your foul word was removed, count yourself lucky that your message was not deleted as such words are not permitted on CCM. For your issue try the following which is the only way to recover your account.
Go to this page
Select password and sign in
Select forgot password
Click on "password helper" or
Click on the envelope to get the Yahoo customer service phone number for your region.
Or click on the envelope to open an e-mail case. If you do not know your security question, in the space provided for them, write "unknown"