Remove x at end of filename