If the customer is not activated, and you've decided to use our trial system, then you should always call UseTrial(). Preferably using TA_SYSTEM, and you should always look at the error code from UseTrial(). Don't just assume it will succeed.
However, if I try using a file with a 34-character online extension code, ExtendTrial always returns TA_FAIL. It makes no difference whether there is a newline after the code or not.
We can't reproduce this here. Are you using the latest version of TurboActivate? Currently 3.4.6. If not, before you do anything else, get that and try again.
Next, try hardcoding the trial extension string inside in your app with a direct call to ExtendTrial(). Does it work?