XWIKI-9261: Failure to find word if not separated by space from the next one
(cherry picked from commit d09187aa1f64474f6105c7e074426f4b91b47b66)