Used c++ string functions instead of memmove to remove the prefix (safer)