added super basic parsing of an input string