Corrected reading key and secret from file, removing newline char