Add ‘wrapStrInTag’ helper and refactor ‘lettersToHtml’