@Marcol:
I think you need to check the length of the "postcode" after you have trimmed it and substituted for the space(s). Otherwise, a valid Manchester central postcode, for example M5 3BE (or m53be) would be passed over. But I might have missed something ;-)
Regards
Bookmarks