How to parse a Math formula into string in android?