Added newline function and test for int_to_str