adding a unary munch function that stops on the null char