basic edit string parsing and protection.