Within one of the houses in Lavender Town, you will find an elderly man that will judge the Nicknames of your Pokemon. If you personally captured a Pokemon, he'll even let you edit the Nickname of your Pokemon. If you didn't capture a Pokemon (ones obtained by Trade), he will say the Nickname of a Pokemon is perfect and will not offer to change it.