Remove space between key and colon when pretty printing objects

[#4005255]