HMAPPY2 Wrong answer with correct logic in golang but correct in python

This code in golang seems to be failing both sub tasks while this code in python gets accepted. I am guessing there is something wrong with the input file.

Can we please validate test cases before making the problem live. Different languages handle whitespaces differently so its good to stick to a standard.