I don't think it is possible without loops. It would loop each character to check its existence