Hive-How to find the length of string including trailing spaces

How to find the length of string including trailing spaces in Hive. I have used the length function , will it count the trailing space present in the string value.?