adding much more generic and correct algorithm of filtering splitters characters