working with strings and cleanup

Signed-off-by: Siddhartha Gupta <makerzzz.zzzz@gmail.com>