string reduction machine