Fix windows Sendkeys errors

implement Replace function for special characters