No, don't use this in Field Calculator. Open the Python window from the toolbar and enter it there. Check your CalculateField call though. It appears you're trying to calculate data2 on itself, but there's nothing in data2. You probably want to change data2.lstrip(' ') to data1.lstrip(' '). You're also not enclosing both datax fields in !'s. Also, since you already created data2, no need, and probably throw an error, to add it again. If you have data2 already, delete the AddField line.
edit - I see you populated data2 first, but there's no need to do this.
edit * 2 - since you already have field data2, you can just use regular Field Calculator. If the leading character in your values for data2 is the only space in them, you can use Replace(' ', '') with the default VB parser (all characters in Replace() are single quotes).
If you have other spaces in the values, switch to Python parser, add data2 (or data1, won't matter), and add [1:]. So !data2![1:]. Or you can use lstrip as above - !data2!.lstrip(). Lstrip will default to using whitespace, so no need to add ' ' to it.