String handling errors while generating pojos