/// <summary>
        /// Füllt den String bis zu der vorgegebenen länge mit Leerzeichen auf.
        /// </summary>
        /// <param name="text"></param>
        /// <param name="len"></param>
        /// <param name="alignment"></param>
        /// <returns></returns>
        public static string Fill(this string text, int len, TextAlighnment alignment = TextAlighnment.Left)
        {
            if (text.Length > len)
                return text.Truncate(len);
            if (text.Length == len)
                return text;
            if (alignment == TextAlighnment.Left)
                return text + " ".RepeatToLen(len - text.Length);
            else if(alignment == TextAlighnment.Right)
                return " ".RepeatToLen(len - text.Length) + text;

            int spaceToFill = len - text.Length;
            int spaceToFillR = spaceToFill/ 2;
            int spaceToFillL = spaceToFill - spaceToFillR;

            return " ".RepeatToLen(spaceToFillL) + text + " ".RepeatToLen(spaceToFillR);
        }