You can probably use JavaScript with a webviewer if working with strings...
You could also use android's linux shell