Use pointers for name and ext