Get maximum line length of a string