Second attempt at IsomorphicWords