You do realise that this shall be true if key is "last.internal_bundle.track_license.handleaves.r'lyeh", right ?  So anything starting with the tested string is OK, no matter how it continues: this is a prefix test, not an equality test.