Removed length for strings and added debug output