Within the operator version of BRST quantization one may proceed as follows: First define a hermitian and formally nilpotent BRST charge. Then look for possible state spaces which yield nontrivial cohomologies. Two of us have previously used this procedure for finite degrees of freedom. In the case of infinite degrees of freedom the procedure requires a precise regularization. We propose here a general precise regularization of the basic commutators which makes the divergent sums we encounter to be expressed in terms of Hurwitz zeta function.A new feature is that the formally nilpotent BRST operator need not be nilpotent on the found state space. A modification might be necessary. The method is applied to three string models: The ordinary bosonic string, the tensionless string and the conformal tensionless string. In the first two models we recover old results, but we believe our treatment further deepens the understanding of the BRST formulation. For the conformal tensionless string model our result is new. Here we show that there is no critical dimension