stripped spaces from record pretty printing

* brackets are not followed/preceded by spaces when inspecting.
adjusting failing tests relying on inspection

* some test cases rely on result from the inspection functions.
  Those were adjusted based on the current result of the inspect
  function, but a more clever method of comparing the result may
  be needed if changes on the tests recur.