Added key to string and string to key methods