Added check for space in path
Added space check
Added check for space in path
Added check for space in path
changed RuntimeException to InvalidArgumentException
Merge pull request #1329 from siad007/patch-25

Added check for space in path