PLA-554 fix for removing whitespaces and punctuation from begining of a snippet