fixed digest to string