Substring Function In Groovy