Solving problem with quotes and issue when deleting a key