Combinatorics on words - Lothaire, M. (Cambridge mathematical library, 1997)