def preprocessed(string):
    """
    Removes punctuation marks and any trailing spaces from the input string
    and returns the preprocessed string
    """
    #Selecting these from the keyboard -- Includes digits as well
    punc = '!@#$%^&*+=-_:[]{}()<>\/|"";,.~`?0123456789' 
    
    #Removing the leading and trailing spaces along with converting to lower case
    string_lower = string.strip().lower()
    
    #Creating a string to eliminate the punc characters
    clean = ''
    
    #Iterating over the characters in original string and checking whether they are a punctuation or not
    for char in string_lower:
        if char not in punc:
            clean += char
            
    return clean