Escaped the dollar sign ($) on the variable retrived from 'expand(<cword>)'.