You can try
SELECT id, text FROM table ORDER BY TRIM(REPLACE(LOWER(text), 'the ', ''))
but note that for large datasets it will be very slow, since it has to recount a new row for each row.
IMO you are better off with a separate column with an index on it.
For multiple stopcodes, just keep nested calls REPLACE. :)