fix triming undefined issue