use string as input data