If your input string is "name(id):hello!" ?
Not entirely sure I understand your question. :>
I'm making a chatroom app
here is i use mid&find
mid(Function.Param(0),find(Function.Param(0),"(")+1,find(Function.Param(0),"):")-find(Function.Param(0),"(")+1)
function.param(0)=username(userid):xxxxxx (eg:fongka2(fongka2):hello!)