cred string regexp fix