Fixed bug always applying final ellipsis, even if end of string was shown.
Moved char padding from being hardcoded to be a setting and fixed bug changing value in result when matching.