Avoid regex, use string last instead