fixed string parsing in main
fixed string parsing in main