(getstr): Move into a separate file.