added string slicing for 40 message