It isn't a easy work to replace the sim card tray of iPhone 4, please find someone professional to do it.
Replacement Sim Card Tray for the iPhone 4G (AT&T)