package functions

import "strings"

func Replace(args ...any) any {
	if len(args) != 3 {
		return ""
	}

	input, ok := args[0].(string)
	if !ok {
		return ""
	}

	purana, ok := args[1].(string)
	if !ok {
		return ""
	}

	nava, ok := args[2].(string)
	if !ok {
		return ""
	}

	return strings.ReplaceAll(input, purana, nava)
}
