Applied combinatorics on words - Lothaire, M. (Cambridge University Press, 2005)