Return getValue with the specified prefix removed. If the location does not have the given prefix then the getValue is returned unchanged.
the value with the prefix removed
the prefix to check