結果 : how to remove undefined value from string in javascript