Trimming hex input