Hash and String conversion