Truncate String with Ellipsis

Source: http://css-tricks.com/snippets/css/truncate-string-with-ellipsis/