Fixing errors in the make_str function.