Properly parse string keys