Strip out extra stuff from path for a cleaner display.
Skip leading space from header value.