strip line termination character from range to be formatted
refactor backing store to immutable, string to var override
link to swift version of original tutorial