remove postfix of file