replacing space with dash

if there are multiple spaces the camel case is only going to do the first part
adding tests for url safe component or app names

to digit as well