Define a static method, for escape string