If compound statements aren't doing what you expect, to me this indicates that your compound statements are too complex, and probably should be broken down anyway. However, that was not your question.
Why don't you just step into getSomeText, step through until you get to the return, and see what it returns?