Fix parsing of ending spaces in panel config file.