bad implementation of getting key - change to startswith instead of in, or use patterns
startswith
in