IDEA-104221 Console folding rules allow to add empty substring and after this console folding is not working anymore.

Prevent loading of empty substring.
Adding the user-defined strings to the end of substring's list