Correcting signature validation function; now removing also \n and \r instead of only padding at the end