def strip_consecutive_repeated_char(s, ch):
sdest = "<STR_LIT>"<EOL>for i,c in enumerate(s):<EOL><INDENT>if i != <NUM_LIT:0> and s[i] == ch and s[i] == s[i-<NUM_LIT:1>]:<EOL><INDENT>continue<EOL><DEDENT>sdest += s[i]<EOL><DEDENT>return sdest<EOL>
Strip characters in a string which are consecutively repeated.

    Useful when in notes or some other free text fields on Mambu, users
    capture anything and a lot of capture errors not always detected by
    Mambu get through. You want some cleaning? this may be useful.

    This is a string processing function.