Comment on Trim added to fix the error related to variable cast