Trim space around xdt file