better fix for ck--/ann#167
- handle non breaking spaces
- always terminate the loop