improve error reporting in case of leading or trailign white spaces in a quoted JID