remove emptySpace from program regex