added input_separator parameter to chose which character to treat as separator while parsing input lines