Changing AN is a bit problematic right now. There's some special instructions in the manual at:
To summarize, after doing the AN command, it is necessary to reset the network right away using ATNR. Also, I see that you've got a space before the APN. I don't think that will work.