When a hostname is configured through the Cisco cli, there are some naming conventions are part of the guidelines that should be followed.
From these conventions:
1- the name of the host shouldn't contain any spaces.
2- the name of the host should always begin with a letter
3- the name of the host should be less than 64 characters in length.