Use try with resources in AnkiDatabaseUtil
Added missing trim()