I have a long string, and this string must break at 15 characters in this example.
This must break right here
The character 15 is the letter K, so it returns one character and checks if is { ' ', '.', ',' } If is, break the line in this position, in the example is the position 10.
My code is only working if I use only one character in the equals clause:
char break= ' ';
What am I doing wrong?