how to remove additional spaces if a string n js code example
Example 1: remove n string
a_string = a_string.rstrip("\n")
Example 2: js fill string with n characters
var str = new Array(len + 1).join( character );
a_string = a_string.rstrip("\n")
var str = new Array(len + 1).join( character );