URL input handling modified

replace all space with '-' for better url handeling