Fixed #22429 -- Updated trim_start to identify join table by name instea...

...d of position and added test.