Update main.js

Function overloading arguments trim space