don't append hypen to long words ending with period

add test case