Checking if alias has a dash (`-`)

If the alias has a dash, it wont try to create accessors since they will
have bad syntax.