using string, not char arrays..working better