fixed parseKeyInner (using substring)
fixed parseKeyInner (using substring)