Crops the provided text. If text is cropped then the
ending is added at the end of the text.
text- The text to crop.
maxCharacters- The maxmium amount of characters, subsequent characters are removed.
ending- The text to end the cropped-text with (if the text was cropped).