Strings and eulerian cycles