fix functionality and add possibility to use string in csv