Fixed apikey had newline in it from read()