Revised StringDelimiter

Revised the string delimiter to include a conditional to deal with strings not ending in a delimiter. Also changed it from html to js file.