Fixed word lookup problem with trailing '/'