Replace all occurences of 'to_str()' to 'to_string()'. Closes #7.