Fix format bug. Make sure data in str format