document compareNames