def _preprocess(statement):
    """Preprocess the input statement."""
    statement = statement.strip()
    statement = statement.replace('"', "'")
    if statement[-1] != ';':
        statement += ';'
    return statement
