my strings look like this:
STRING* holograph_1_2 =
"Hey!
Sounds very cool!";
with line break
whitespace is not linebreak, you cannot check it.
If you would use '\n' for linebreaks in your string, it would be possible, because this linebreaks could be found with str_stri() ...
just a suggestion, hopes this helps

Gor Na Kosh
EDIT:
An other possibility could be to convert the string into single characters and check their ASCII value width str_to_asc()
a linebreak would be 13 + 10 if I'm right