verify path elements before stringing them