is there a reason you are not using a more generic function for this, since I assume you are doing a similar thing for enforcing hyphenation?