結果 : string without last character javascript