Trying to read only part of char* pointer.