Is it possible to insert a variable into a bpy context?
Like
bpy.types.Scene.propertyNameProp = StringProperty(name="Name", default="", maxlen=10, description="Name of your property")
propName = bpy.context.scene.propertyNameProp
bpy.types.Scene.propName()