fn try_from_str(string: String) -> Result<Self, SimpleError> {
match string.trim().to_lowercase().as_str() {
"top_left" => Ok(Self::TopLeft), "top left" => Ok(Self::TopLeft), "topleft" => Ok(Self::TopLeft),
"top" => Ok(Self::Top),
"top_right" => Ok(Self::TopRight),
"top right" => Ok(Self::TopRight),
"topright" => Ok(Self::TopRight),
"left" => Ok(Self::Left),
"middle" => Ok(Self::Middle),
"right" => Ok(Self::Right),
"bottom_left" => Ok(Self::BottomLeft),
"bottom left" => Ok(Self::BottomLeft),
"bottomleft" => Ok(Self::BottomLeft),
"bottom" => Ok(Self::Bottom),
"bottom_right" => Ok(Self::BottomRight),
"bottom right" => Ok(Self::BottomRight),
"bottomright" => Ok(Self::BottomRight),
_ => Err(SimpleError::new("Failed to convert slice name text into SliceName enum in module repeatable_3x3_sprite".into())),
}
}