Fix code for anything-to-string space estimation