added code to trim spaces from api key
added code to strip spaces from video keys