SQL: clear strings first