Fixed a bug where edit/replace metadata functions would expect metadata as a string