jquery wrap last character in span code example
Example: Wrap the last word of a paragraph in span tags using jQuery
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<p>Phasellus sit amet auctor velit, ac egestas augue.</p>