Get first n characters from string without breaking word