fixing spaces in metadata