bug fix for head and tail quote character