Add spaces: WhenIpassedthetaxistheytoldmethatitwouldnotbewisetowalk.Buttheyalsohadabusinesstorun,soIkeptatit.
When I passed the taxis they told me that it would not be wise to walk. But they also had a business to run, so I kept at it.