Added string utils and fixed txt reader