took out leading and trailing gaps (fixed in get_string code elsewhere)