Add line numbers to a string.