trim .msg from classname

not use split