fix firmware string parsing