adding remove characters and endianness