Fix subdomain, add test, space and comment fix

Cleaning things when learning the code. 
no, it the `stringVal==""` it will return the same as `[]string{}`