fix an easy bug, use trim to remove space