Fix precision handling in strings