Handle file:// values containing leading/trailing spaces

Fixes #631.  The issue was that shorthand processing was triggered
because we were looking at leading spaces instead of the first non
space character.