When the character doesn't fully fit into the width, it should be excluded. Test that the result exceeds the passed width, and then remove the last character. Add basic tests, too.