trim the constructor args