Why do we need to call `trim()` here? I don't think this is standard js function.