string to key decoder