Fix wrong stripping in sql_console module