You can use the built in Find/Replace features.

Go to Edit|Replace

Find What: AA
Replace With: (leave blank).

Click Replace All. Click Ok.

To eliminate leading spaces..

Go to Edit|Replace again

Find What: (enter a single space)
Replace With: (leave blank).

Click Replace All. Click Ok.