fixed noMethode Error for to_str