i agree that there should be a .trim() function in nodejs inbuilt