This should help your initial question.
Other than that, you can always open a level by name instead:
…but I’m not really sure how both of those fit together. Also, please try to compare Names and not Strings if you have to. It’s much faster.