Say the person posts any kinda of symbol repeatidly, like ......... or ,,,,, or one of smile smile smile smile smile I want a script that looks at the line, and after 10 symbols, it times them out. But I don't want to do a million

Code:
if (. isin $1-)


Statements, I am looking for something more like

Code:
if (symbol) 


any Ideas?