Remove extra space in source, add clamp and smoothStep