結果 : write a javascript function to remove specified number of characters from a string