You check the length already, no?  Or are you eliminating the ":\\" path here?