You can export your contacts from the N900 as a VCard 2.1 or VCard 3.0 file, then import that into Gmail. Clean everything up in Gmail, then export a VCard file from Gmail back into you N900.