Adding String class to getPrimitives