solve string format