Text this: Search for the optimal smoothing method to improve S/N in cosmic maser spectra