Added trim() to API keys inputs