check if api key contains "-' in maskApiKey method