Added manual context creation for testing purposes.
Improved string handling.