made convertstr.pl cli-friendly