Hi,
I am assuming by "greater" you mean the string length.
Use the string length function from the strings palette, with shift-registers on a while loop. Write to the shift-register the "greater" string.
I am attaching a diagram screenshot for this. NOTE: depending on how you want this VI to run, you can move the input and output string control and indicator inside our outside the while loop.
Hope this is what you were looking for.
Khalid