added conditon to set punctuation string to empty