replaced sizeof() with strlen()