Using common string operations in Go