created general purpose function to strip extensions from strings and used it throughout apiwrapper