def rmTrailChar(str,c):
    """
    Remove all the trailing characters c from a string
      @input str :: starting string
      @input c   :: trailing characters
      @return    :: string without the trailing character
    """ 
    while(str[-1]==c and len(str)>0):
        str=str[:-1]
    return str