Python Trim String Length Sql Function To Get Current