Fix for word boundary problem in trial factor