Fix neighborhood string generator