Reducing the size of string for float to string conversion