Added function to wrap 'magic words' in span tags