removed unnecessary trim call