Checking application name for validity