Fixed #22429 -- Updated trim_start to identify join table by name instead of position and added test.