remove trailing enter from apikey