isnt the elseif check sufficient since the content is obviously whitespace?