Substring widget not working for me