結果 : cut string based on character javascript