Call to_s to split a string safely