use string builder instead concatenating strings in building a path