Revert "Update SMSPlugin.java by removing a duplicate lines"
There are two very similar lines which caused some confusion. I suggest we at least rename the helper function to avoid confusion in the future, but for now just doing a revert to avoid a regression in the SMS Plugin.
This reverts commit a7a66ecb