Added rstrip to remove whitespaces from string values.