Fixed last character gettting trimmed removed debug output