Fixed bug: input[size] should consider not only text length, but also word-spacing.