fixed trim bug in read_config_file.