Here we do a refactoring of an IF statement, and use some StrUtils functions to make our code much shorter.  Watch it on YouTube.