checks if path is not whitespace in pathresolver