modified cssRemoveDelimiter function