putstr with strlen